package com.tbit.uqbike.object.pojo.vo;

import com.tbit.common.entity.view.PageResult;

import java.math.BigDecimal;

/**
 * 其他收支情况
 *
 * @Author:yanlun
 * @DATE: 2022/11/18
 */
public class AccountDayStatOtherVo {

    /**
     * 本期收支
     */
    private IncomeExpendDetailVo incomeExpendDetail;
    /**
     * 期初总额
     */
    private BigDecimal termStart;
    /**
     * 期末总额
     */
    private BigDecimal termEnd;
    /**
     * 数据列表
     */
    private PageResult<AccountDayStatOtherDetailVO> pageList;

    public IncomeExpendDetailVo getIncomeExpendDetail() {
        return incomeExpendDetail;
    }

    public void setIncomeExpendDetail(IncomeExpendDetailVo incomeExpendDetail) {
        this.incomeExpendDetail = incomeExpendDetail;
    }

    public BigDecimal getTermStart() {
        return termStart == null ? null : termStart.setScale(2, BigDecimal.ROUND_HALF_UP);
    }

    public void setTermStart(BigDecimal termStart) {
        this.termStart = termStart;
    }

    public BigDecimal getTermEnd() {
        return termEnd == null ? null : termEnd.setScale(2, BigDecimal.ROUND_HALF_UP);
    }

    public void setTermEnd(BigDecimal termEnd) {
        this.termEnd = termEnd;
    }

    public PageResult<AccountDayStatOtherDetailVO> getPageList() {
        return pageList;
    }

    public void setPageList(PageResult<AccountDayStatOtherDetailVO> pageList) {
        this.pageList = pageList;
    }
}
